package com.ruoyi.message.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息推送对象 t_message
 *
 * @author Bandit
 * @date 2022-11-01
 */
public class TMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息id */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 消息类型 */
    @Excel(name = "消息类型")
    private Integer type;

    /** 发送者id */
    @Excel(name = "发送者id")
    private Long senderId;

    /** 发送者姓名 */
    @Excel(name = "发送者姓名")
    private String senderName;

    /** 已读数 */
    @Excel(name = "已读数")
    private Long readCount;

    /** 接收人数 */
    @Excel(name = "接收人数")
    private Long receiveUserCount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setSenderId(Long senderId)
    {
        this.senderId = senderId;
    }

    public Long getSenderId()
    {
        return senderId;
    }
    public void setSenderName(String senderName)
    {
        this.senderName = senderName;
    }

    public String getSenderName()
    {
        return senderName;
    }
    public void setReadCount(Long readCount)
    {
        this.readCount = readCount;
    }

    public Long getReadCount()
    {
        return readCount;
    }
    public void setReceiveUserCount(Long receiveUserCount)
    {
        this.receiveUserCount = receiveUserCount;
    }

    public Long getReceiveUserCount()
    {
        return receiveUserCount;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "TMessage{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", type=" + type +
                ", senderId=" + senderId +
                ", senderName='" + senderName + '\'' +
                ", readCount=" + readCount +
                ", receiveUserCount=" + receiveUserCount +
                '}';
    }
}
